package pojo;

import java.io.Serializable;
import lombok.Data;

/**
 * classroomUse
 * @author 
 */
@Data
public class ClassroomUse implements Serializable {
    private Short classroomuseid;

    private String classroomusename;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ClassroomUse other = (ClassroomUse) that;
        return (this.getClassroomuseid() == null ? other.getClassroomuseid() == null : this.getClassroomuseid().equals(other.getClassroomuseid()))
            && (this.getClassroomusename() == null ? other.getClassroomusename() == null : this.getClassroomusename().equals(other.getClassroomusename()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getClassroomuseid() == null) ? 0 : getClassroomuseid().hashCode());
        result = prime * result + ((getClassroomusename() == null) ? 0 : getClassroomusename().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", classroomuseid=").append(classroomuseid);
        sb.append(", classroomusename=").append(classroomusename);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}